import request from '@/utils/request'

// 查询闲置评论列表
export function listIdleComm(query) {
  return request({
    url: '/idleComm/idleComm/list',
    method: 'get',
    params: query
  })
}

// 查询闲置评论详细
export function getIdleComm(commentId) {
  return request({
    url: '/idleComm/idleComm/' + commentId,
    method: 'get'
  })
}

// 新增闲置评论
export function addIdleComm(data) {
  return request({
    url: '/idleComm/idleComm',
    method: 'post',
    data: data
  })
}

// 修改闲置评论
export function updateIdleComm(data) {
  return request({
    url: '/idleComm/idleComm',
    method: 'put',
    data: data
  })
}

// 删除闲置评论
export function delIdleComm(commentId) {
  return request({
    url: '/idleComm/idleComm/' + commentId,
    method: 'delete'
  })
}
